package com.hzdl.library.dao;


import com.hzdl.library.domain.LendList;
import com.hzdl.library.domain.ReaderInfo;

import java.util.List;

//姚奇
public interface UserDao {
    Integer lend(String name, Integer readerId);

    Integer returnBook(Integer book_id);

    List<LendList> lendRecord(String text, Integer index, int rows);

    Integer judge(String name);

    Integer findCount(String text);

    void deleteOne(int sernum);
    List<LendList> findLog(Integer reader_id);

    void updateReader(ReaderInfo readerInfo);

    List<ReaderInfo> selectAllReader();

    void deleteReader(String readerId);

    List<LendList> downLoad();
}
